/*******************************************************************************
* CHIPSEA F61 DELAY HAL
*******************************************************************************/

#include "hal_cs_f70_delay.h"

#ifdef CS_F70

#include <stdint.h>

/*******************************************************************************
Brief initialize the systick module to realize delay,1m slice is provided 
@param : none
********************************************************************************/
void Delay_Init(void)
{
	timer_delay_init();
}

/********************************************************************************
Brief initialize the systick module to realize delay,1m slice is provided 
Example : Delay_ms(10) -- delay 10 ms
@param  : n if you want delay 10 ms , assigne n as 10  
*********************************************************************************/	
void hal_delay_ms(unsigned int n)
{
	timer_delay_ms(n);
}

//min 100us
void hal_delay_us(unsigned int n)
{
	timer_delay_us(n);
}

#endif /* End of CS_F61 */
